package com.example.ourradio;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class FeedFragmentPagerAdapter extends FragmentPagerAdapter {
	public FeedFragmentPagerAdapter(FragmentManager fm) {
		super(fm);
	}

	@Override
	public Fragment getItem(int position) {
		return FeedFragment.newInstance(FeedTab.values()[position]);
	}

	@Override
	public int getCount() {
		return FeedTab.values().length;
	}

}
